package research.domain;

import research.entity.Entity;
import research.entity.EntityType;

public final class ComponentValue extends Entity {
	private double percent;
	private boolean is_main;
	private Component component;
	private Formula formula;

	public ComponentValue() {
		super(EntityType.ComponentValue);
	}

	public double getPercent() {
		return percent;
	}

	public void setPercent(double percent) {
		this.percent = percent;
	}

	public boolean isIs_main() {
		return is_main;
	}

	public void setIs_main(boolean is_main) {
		this.is_main = is_main;
	}

	public Component getComponent() {
		return component;
	}

	public void setComponent(Component component) {
		this.component = component;
	}

	public Formula getFormula() {
		return formula;
	}

	public void setFormula(Formula formula) {
		this.formula = formula;
	}

	public static ComponentValue getNew() {
		ComponentValue res = new ComponentValue();
		res.setIs_main(false);
		return res;
	}

}
